<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class _DataConfig{
    var $databaseURL;
    var $databaseName;
    var $databaseUName;
    var $databasePWord;
    function _DataConfig(){
    	$this->databaseURL="localhost";
    	$this->databaseName="neowiz";
    	$this->databaseUName="root";
    	$this->databasePWord="";
    }
    function getdatabaseURL(){
        //return $this->databaseURL;
        return $this->databaseURL;
    }
    function getdatabaseName(){
        return $this->databaseName;
    }
    function getUName(){
        return $this->databaseUName;
    }
    function getdatabasePWord(){
        return $this->databasePWord;
    }
    function _connectionMySQL(){
    	$dbURL  = $this->databaseURL;
        $dbName = $this->databaseName;
        $dbUsr  = $this->databaseUName;
        $dbPwd  = $this->databasePWord;
    	$JO_MySQL= new mysqli( $dbURL, $dbUsr, $dbPwd, $dbName );
        $JO_MySQL -> query( "SET NAMES 'UTF8'" );
        $JO_MySQL -> query( "SET SQL_SAFE_UPDATES=0" );
        return $JO_MySQL;
    }
}
?>
